#include<stdio.h>
#include<string.h>//string length函数的头文件
int main()
{
	char arr1[] = "abcdef";//有结束标志\0
	char arr2[] = {'a','b','c','d','e','f'};//无结束标志\0 , 所以程序不知道哪里开始停止
	
	int len1 = strlen(arr1);//求字符串的一个函数，string length
    int len2 = strlen(arr2);//strlen不会算进'\0'

	int len3 = sizeof(arr1) / sizeof(arr1[0]); //sizeof会算进'\0'
	
	printf("%d\n",len1);
	printf("%d\n",len2);
	printf("%d\n",len3);
	//printf("%d\n",strlen(arr1));
	
	printf("%s\n",arr1);
	printf("%s\n",arr2);
	
	return 0;
}
